package cn.tedu.ezhaung_project.controller;

import cn.tedu.ezhaung_project.mapper.HouseMapper;
import cn.tedu.ezhaung_project.pojo.vo.HouseRequirementVO;
import cn.tedu.ezhaung_project.pojo.vo.HouseTypeVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/house/")
public class HouseController {
    @Autowired
    HouseMapper houseMapper;


    @RequestMapping("selectHouseType")
    public List<HouseTypeVO> selectHouseType(){
        return houseMapper.selectHouseType();
    }
    @RequestMapping("selectHouseRequirement")
    public List<HouseRequirementVO> houseRequirement(){
        return houseMapper.selectHouseRequirement();
    }

    @RequestMapping("insertInfo")
    public int insertInfo(){
     return 1;
    }
}
